package com.jdrx.sw.sewage.beans.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "智能加药AI日志", description = "智能加药AI日志")
@Data
public class CdAiLogPO implements Serializable {
	private static final long serialVersionUID = -7474336669191614540L;
	
	private Long id;
	
	@ApiModelProperty(value = "设备名称")
	private String device;
	
	@ApiModelProperty(value = "事件说明")
	private String event;
	
	@ApiModelProperty(value = "级别说明：0普通消息、1设备启停消息")
	private Integer level;
	
	@ApiModelProperty(value = "创建日期yyyy-MM-dd HH:mm:ss")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime createAt;
	
	/**以下字段均是为了查询而添加的虚拟字段，在数据库中并不真实存在*/
	@ApiModelProperty(value = "创建日期开始查询条件yyyy-MM-dd HH:mm:ss", hidden = true)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime startCreateAt;
	
	@ApiModelProperty(value = "创建日期结束查询条件yyyy-MM-dd HH:mm:ss", hidden = true)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime endCreateAt;
}